package com.mocha.bss.feign.general.api;

import com.coffee.attachment.AttachVisualDTO;
import com.coffee.attachment.ExcelDocumentDTO;
import com.mocha.bss.BssServerInfo;
import com.mocha.bss.feign.general.api.fallback.MochaAttachmentFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author: songkui
 * @since: 2022/3/11 15:25
 */
@FeignClient(name = BssServerInfo.APPLICATION_NAME, contextId = "mochaAttachment",path = BssServerInfo.ATTACHMENT_PATH, fallbackFactory = MochaAttachmentFeignFallback.class)
public interface MochaAttachmentFeign {

    @PostMapping("/save/document")
    Long saveDocument(@RequestBody ExcelDocumentDTO entity);


    @PostMapping("/save/visual")
    Long saveVisual(@RequestBody AttachVisualDTO entity);

}
